<?php slot('footer') ?>
<div class="footerbox">
	<div class="footerleft">
		<img src="/project_css_js/img/footerleft.png" width="20" height="144" alt=""/>
	</div>
	<div class="footermain">
		<div class="footerlinks">
			<?php foreach($menu->getElements() as $item): ?>
			<div class="flinksbox">
				<p class="myr"><?php echo $item->getName()?></p>
				<?php if($item->hasChildren()): ?>
				<ul>
					<?php foreach($item->getSubElements() as $sub):?>
					<li><a href="<?php echo $sub->getLink() ?>"><?php echo $sub->getName()?></a></li>
					<?php endforeach;?>
				</ul>
				<?php endif; ?>
			</div>
			<?php endforeach; ?>
			
			<div class="clear"></div>
			<div class="rights">
				<p>© Kivilaine OÜ 2011</p>
			</div>
		</div>
		<?php echo $bottomArticle['content']?>
	</div>
	<div class="footerright">
		<img src="/project_css_js/img/footerright.png" width="20" height="144" alt=""/>
	</div>
	<div class="clear"></div>
</div>
<?php end_slot() ?>